﻿
using System;
using System.Data;
using NetCore.ORM;
namespace NetCore.Api.Model
{
    /// <summary>
    /// 接口权限
    /// </summary>
    [Table("API_Permission", IsDeleted = true, IsCreated = true, IsLastModify = true, IsTable = true)]
    public partial class APIPermissionEntity : EntityBase
    {
        #region 常量
        public const string _TableName = "API_Permission";

        /// <summary>
        /// 主键字段名
        /// </summary>
        public const string _PrimaryKeyName = "PermissionId";

        /// <summary>
        /// 用户编号
        /// </summary>
        public const string __UserNo = "UserNo";

        /// <summary>
        /// 上级权限
        /// </summary>
        public const string __ParentId = "ParentId";

        /// <summary>
        /// 权限id
        /// </summary>
        public const string __ActionId = "ActionId";

        /// <summary>
        /// 链接
        /// </summary>
        public const string __RouteUrl = "RouteUrl";

        /// <summary>
        /// 描述
        /// </summary>
        public const string __Remark = "Remark";
        #endregion
        #region 属性
        private string _PermissionId;
        /// <summary>
        /// 主键
        /// </summary>
        [DbColumn("PermissionId", LocalName = "主键", ColumnType = "string", IsPrimaryKey = true, AllowDBNull = false, IsGridVisible = false, MaxLength = 36, ControlType = 2)]
        public virtual string PermissionId
        {
            get
            {
                return _PermissionId;
            }
            set
            {
                _PermissionId = value;

            }
        }
        private string _UserNo;
        /// <summary>
        /// 用户编号
        /// </summary>
        [DbColumn("UserNo", LocalName = "用户编号", ColumnType = "string", AllowDBNull = false, IsGridVisible = false, MaxLength = 50, ControlType = 1)]
        public virtual string UserNo
        {
            get
            {
                return _UserNo;
            }
            set
            {
                SetUpdateField(__UserNo);
                _UserNo = value;

            }
        }
        private string _ParentId;
        /// <summary>
        /// 上级权限
        /// </summary>
        [DbColumn("ParentId", LocalName = "上级权限", ColumnType = "string", MaxLength = 50, ControlType = 1)]
        public virtual string ParentId
        {
            get
            {
                return _ParentId;
            }
            set
            {
                SetUpdateField(__ParentId);
                _ParentId = value;

            }
        }
        private string _ActionId;
        /// <summary>
        /// 权限id
        /// </summary>
        [DbColumn("ActionId", LocalName = "权限id", ColumnType = "string", AllowDBNull = false, MaxLength = 50, ControlType = 1)]
        public virtual string ActionId
        {
            get
            {
                return _ActionId;
            }
            set
            {
                SetUpdateField(__ActionId);
                _ActionId = value;

            }
        }
        private string _RouteUrl;
        /// <summary>
        /// 链接
        /// </summary>
        [DbColumn("RouteUrl", LocalName = "链接", ColumnType = "string", MaxLength = 500, ControlType = 1)]
        public virtual string RouteUrl
        {
            get
            {
                return _RouteUrl;
            }
            set
            {
                SetUpdateField(__RouteUrl);
                _RouteUrl = value;

            }
        }
        private string _Remark;
        /// <summary>
        /// 描述
        /// </summary>
        [DbColumn("Remark", LocalName = "描述", ColumnType = "string", IsGridVisible = false, MaxLength = 500, ControlType = 1)]
        public virtual string Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                SetUpdateField(__Remark);
                _Remark = value;

            }
        }
        #endregion
    }
}
